@font-face {
    font-family: 'Patrick Hand SC';
    font-style: normal;
    font-weight: 400;
    src: url('patrickhand-sc.woff2') format('woff2');
}

/* Core Styles */
body {
    background: radial-gradient(circle at center, #1a1a2e, #16213e);
    font-family: 'Patrick Hand SC', cursive;
    color: #fff;
    margin: 0;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-transition: background 1s ease-in-out;
    transition: background 1s ease-in-out;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

#game-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

/* Header */
.game-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    border-radius: 15px;
    background: -webkit-linear-gradient(45deg, #ff6b6b, #ffd93d);
    background: linear-gradient(45deg, #ff6b6b, #ffd93d);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Story Section */
#story {
    background: rgba(25, 25, 35, 0.95);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    min-height: 300px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    line-height: 1.8;
    font-size: 1.3rem;
    animation: fadeIn 1s ease-out;
}

/* Options & Buttons */
.options {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
}

.options button {
    background: -webkit-linear-gradient(145deg, #6c5ce7, #a363d9);
    background: linear-gradient(145deg, #6c5ce7, #a363d9);
    border: none;
    padding: 1.2rem;
    font-size: 1.1rem;
    border-radius: 12px;
    -webkit-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.options button:hover {
    transform: translateY(-3px) rotate(1deg);
    box-shadow: 0 10px 20px rgba(108, 92, 231, 0.3);
    background: -webkit-linear-gradient(145deg, #a363d9, #6c5ce7);
    background: linear-gradient(145deg, #a363d9, #6c5ce7);
}

.options button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.options button:hover::before {
    left: 100%;
}

/* Mood System */
#mood-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: var(--mood-color, #2c3e50);
    opacity: var(--mood-intensity, 0.1);
    -webkit-transition: all 1s ease;
    transition: all 1s ease;
}

[data-mood="anger"] { --mood-color: #e74c3c; --mood-intensity: 0.3; }
[data-mood="sad"] { --mood-color: #2980b9; --mood-intensity: 0.2; }
[data-mood="happy"] { --mood-color: #f1c40f; --mood-intensity: 0.25; }
[data-mood="epic"] { --mood-color: #e74c3c; --mood-intensity: 0.3; }
[data-mood="neutral"] { --mood-color: #2c3e50; --mood-intensity: 0.1; }

/* Footer */
.game-footer {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
}

#relationships {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0,0,0,0.7);
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9em;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

/* Animations */
@-webkit-keyframes fadeIn {
    from { opacity: 0; -webkit-transform: translateY(20px); transform: translateY(20px); }
    to { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; -webkit-transform: translateY(20px); transform: translateY(20px); }
    to { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); }
}

@-webkit-keyframes pulse {
    0% { -webkit-transform: scale(1); transform: scale(1); }
    50% { -webkit-transform: scale(1.02); transform: scale(1.02); }
    100% { -webkit-transform: scale(1); transform: scale(1); }
}

@keyframes pulse {
    0% { -webkit-transform: scale(1); transform: scale(1); }
    50% { -webkit-transform: scale(1.02); transform: scale(1.02); }
    100% { -webkit-transform: scale(1); transform: scale(1); }
}

@-webkit-keyframes float {
    0%, 100% { -webkit-transform: translateY(0); transform: translateY(0); }
    50% { -webkit-transform: translateY(-20px); transform: translateY(-20px); }
}

@keyframes float {
    0%, 100% { -webkit-transform: translateY(0); transform: translateY(0); }
    50% { -webkit-transform: translateY(-20px); transform: translateY(-20px); }
}



/* Auth Buttons */
.auth-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1rem;
    background: var(--secondary);
}

.auth-buttons a {
    text-decoration: none;
    color: var(--text-light);
    background: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.auth-buttons a:hover {
    background: var(--accent);
}


/* Auth Buttons */
.auth-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1rem;
    background: var(--secondary);
}

.auth-buttons a {
    text-decoration: none;
    color: var(--text-light);
    background: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.auth-buttons a:hover {
    background: var(--accent);
}

/* Updated Auth Modal */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* subtle overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.auth-modal-content {
    background: #fff; /* or use a variable like var(--surface) */
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.auth-modal-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #2C4A3E; /* example primary color */
    color: #F5F7F3;    /* example text light */
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.auth-modal-button:hover {
    background: #356B55; /* example accent color */
}